package com.lin.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * ClassName:User
 * Package:com.lin.pojo
 * Author: hellcat
 * Date: 2019/12/16
 * ♣♣♣
 */

public class User implements Serializable {
    private static final long serialVersionUID = 629243960300225387L;
    private Integer id;
    private String name;
    private String accountNumber;
    private String pwd;
    private String sex;
    private String phone;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date addTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
    private Integer status;
    private Integer storeId;
    private String role;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccountNumber() {
        return accountNumber;
    }

    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    //toString()涉及到缓存更新的key，不能删除
    @Override
    public String toString() {
        return "id=" + id +
                ", name=" + name +
                ", accountNumber=" + accountNumber  +
                ", pwd=" + pwd +
                ", sex=" + sex +
                ", phone=" + phone +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                ", status=" + status +
                ", storeId=" + storeId +
                ", role=" + role ;
    }
}
